//
//  FriendsHeaderView.m
//  觅影
//
//  Created by  陶虹 on 16/4/8.
//  Copyright © 2016年  陶虹. All rights reserved.
//

#import "FriendsHeaderView.h"

@implementation FriendsHeaderView
- (void)configureHeaderWithModel:(FriendsMainModel *)model{
    
    [self.iconButton setImage:[UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:model.header]]] forState:UIControlStateNormal];
    self.unameLabel.text = model.username;
    self.model = model;

}
- (IBAction)iconButtonAction:(id)sender {
    [self.delegate pushToPersonInfoVc:self.model];
}

- (void)awakeFromNib {
    // Initialization code
}

@end
